package com.bgs.vo;

import com.bgs.pojo.Conference;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Auther: 梁玉杰
 * @Date: 2022/5/23 16:52
 * @Description: TODO
 */
@Data
public class ConferenceVo extends Conference {

    private Integer limit;
    private Integer page;

    @ApiModelProperty(value = "开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//JsonFormat是出参格式化。
//    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
//    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private Date times;

    private String tim;

    @Override
    public String toString() {
        return "ConferenceVo{" +super.toString()+
                "limit=" + limit +
                ", page=" + page +
                '}';
    }
}
